/**
 * Historico de alteração
 *
 * Data         Autor   Descrição
 * 24/10/2010   Jerry   Criação do cabeçalho.
 *
 */
package railbee.banco.dto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/** 
 * This class represents the primary key of the trem_zigbee table.
 */
public class TremZigbeePk implements Serializable
{
	protected int idSeqTremXbee;

	/** 
	 * This attribute represents whether the primitive attribute idSeqTremXbee is null.
	 */
	protected boolean idSeqTremXbeeNull;

	/** 
	 * Sets the value of idSeqTremXbee
	 */
	public void setIdSeqTremXbee(int idSeqTremXbee)
	{
		this.idSeqTremXbee = idSeqTremXbee;
	}

	/** 
	 * Gets the value of idSeqTremXbee
	 */
	public int getIdSeqTremXbee()
	{
		return idSeqTremXbee;
	}

	/**
	 * Method 'TremZigbeePk'
	 * 
	 */
	public TremZigbeePk()
	{
	}

	/**
	 * Method 'TremZigbeePk'
	 * 
	 * @param idSeqTremXbee
	 */
	public TremZigbeePk(final int idSeqTremXbee)
	{
		this.idSeqTremXbee = idSeqTremXbee;
	}

	/** 
	 * Sets the value of idSeqTremXbeeNull
	 */
	public void setIdSeqTremXbeeNull(boolean idSeqTremXbeeNull)
	{
		this.idSeqTremXbeeNull = idSeqTremXbeeNull;
	}

	/** 
	 * Gets the value of idSeqTremXbeeNull
	 */
	public boolean isIdSeqTremXbeeNull()
	{
		return idSeqTremXbeeNull;
	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof TremZigbeePk)) {
			return false;
		}
		
		final TremZigbeePk _cast = (TremZigbeePk) _other;
		if (idSeqTremXbee != _cast.idSeqTremXbee) {
			return false;
		}
		
		if (idSeqTremXbeeNull != _cast.idSeqTremXbeeNull) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	public int hashCode()
	{
		int _hashCode = 0;
		_hashCode = 29 * _hashCode + idSeqTremXbee;
		_hashCode = 29 * _hashCode + (idSeqTremXbeeNull ? 1 : 0);
		return _hashCode;
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "railbee.banco.dto.TremZigbeePk: " );
		ret.append( "idSeqTremXbee=" + idSeqTremXbee );
		return ret.toString();
	}

}
